package com.sgb.zhaocai.entity;

import java.io.Serializable;
import java.util.Objects;

public class ReturnTypeEntity implements Serializable {
    private String firstName;
    private String secondName;
    private String firstNo;
    private String secondNo;

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getSecondName() {
        return secondName;
    }

    public void setSecondName(String secondName) {
        this.secondName = secondName;
    }

    public String getFirstNo() {
        return firstNo;
    }

    public void setFirstNo(String firstNo) {
        this.firstNo = firstNo;
    }

    public String getSecondNo() {
        return secondNo;
    }

    public void setSecondNo(String secondNo) {
        this.secondNo = secondNo;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ReturnTypeEntity that = (ReturnTypeEntity) o;
        return firstName.equals(that.firstName) &&
                secondName.equals(that.secondName) &&
                firstNo.equals(that.firstNo) &&
                secondNo.equals(that.secondNo);
    }

    @Override
    public int hashCode() {
        return Objects.hash(firstName, secondName, firstNo, secondNo);
    }
}
